<template>
    <div class="reply" :class="{'border':border}">
        <!-- top -->
        <div class="top flex flex-y flex-between">
            <div class="flex flex-y">
                <!-- 头像 -->
                <div class="profile">
                    <img :src="formData.headImg?formData.headImg:common.defaultImg">
                </div>
                <!-- 名字 -->
                <p class="name">{{formData.realName}}</p>
                <p class="none date">{{common.filter_date(formData.reviewDate)}}</p>
            </div>
            <div class="none flex flex-y zan">
                <img src="@/assets/images/public/icon_zan.png">
                {{formData.approvalCount}}
            </div>
        </div>
        <!-- 内容 -->
        <div class="content">
            {{formData.content}}
        </div>
    </div>
</template>

<script>
export default {
    props:["formData","border"],
    data () {
        return {}
    },
    methods:{

    }
}
</script>

<style lang="scss" scoped>
    .reply{
        padding: 30px 0 15px 0;
        .top{
            .profile{
                margin-right: 10px;
                width: 30px;
                height: 30px;
                border-radius: 50%;
                overflow: hidden;
                img{
                    width: 100%;
                    min-height: 30px;
                }
            }
            .name{
                font-size: 16px;
                margin-right: 20px;
            }
            .date{
                margin-top: 4px;
            }
            .zan{
                img{
                    height: 16px;
                    margin-right: 4px;
                }
            }
        }
        .content{
            padding: 15px 0;
            color: #444;
            line-height: 24px;
        }
    }
    .border{
        border-bottom: 1px solid #dedede;
    }
</style>
